import 'log_output.dart';
import 'log_entity.dart';

class MultiOutput extends LogOutput {
  final List<LogOutput> outputs;

  MultiOutput(this.outputs);

  @override
  void init() {
    for (final output in outputs) {
      output.init();
    }
  }

  @override
  void output(OutputEvent event) {
    for (final output in outputs) {
      output.output(event);
    }
  }

  @override
  void destroy() {
    for (final output in outputs) {
      output.destroy();
    }
  }
}